package com.evil.application.pojo.dto.button;

import com.evil.common.application.dto.permission.app.AppPermissionDTO;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 修改按钮权限
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Data
public class ModifyButtonPermissionReqDTO {

    /**
     * 按钮key
     */
    @NotBlank(message = "按钮key不能为空")
    private String buttonKey;

    /**
     * 权限
     */
    @Valid
    private List<AppPermissionDTO> permissions;

    /**
     * 密码
     */
    private String password;

    /**
     * 权限状态(0:全体, 1:指定)
     */
    @NotNull(message = "权限状态不能为空")
    private Integer permissionStatus;

    /**
     * 密码状态(0:关闭, 1:开)
     */
    @NotNull(message = "密码状态不能为空")
    private Integer passwordStatus;
}
